package com.pkuse.bjousystem.dto.student;

import org.apache.commons.lang3.StringUtils;

public class XueShengJiHuaXiangQingDTO {
    private String mkh;
    private String mkm;
    private String mkxf;
    private String mkzyxf;
    private String tgzf;
    private String kcid;
    private String kcmc;
    private String kcxzmc;
    private String kclxmc;
    private String xf;
    private String ksxq;
    private String ksdwlxmc;
    private String zhcj;
    private double zxf;

    public void setZxf(double zxf) {
        this.zxf = zxf;
    }

    public void setTgzf(String tgzf) {
        this.tgzf = tgzf;
    }

    public XueShengJiHuaXiangQingDTO(String mkh, String mkm, String mkxf, String mkzyxf, String kcid, String kcmc, String kcxzmc, String kclxmc, String xf, String ksxq, String ksdwlxmc, String zhcj) {
        this.mkh = mkh;
        this.mkm = mkm;
        this.mkxf = mkxf;
        this.mkzyxf = mkzyxf;
        this.kcid = kcid;
        this.kcxzmc = kcxzmc;
        this.kclxmc = kclxmc;
        this.kcmc = kcmc;
        this.xf = xf;
        this.ksxq = ksxq;
        this.ksdwlxmc = ksdwlxmc;
        this.zhcj = StringUtils.trimToEmpty(zhcj);
    }

    public String getMkh() {return mkh;}

    public String getMkm() {
        return mkm;
    }

    public String getMkxf() {
        return mkxf;
    }

    public String getMkzyxf() {
        return mkzyxf;
    }

    public String getTgzf() {
        return tgzf;
    }

    public String getKcid() {
        return kcid;
    }

    public String getKcxzmc() {
        return kcxzmc;
    }

    public String getKclxmc() {
        return kclxmc;
    }

    public String getKcmc() {
        return kcmc;
    }

    public String getXf() {
        return xf;
    }

    public double getXfNumber() {
        return Double.valueOf(xf);
    }

    public String getKsxq() {
        return ksxq;
    }

    public String getKsdwlxmc() {
        return ksdwlxmc;
    }

    public String getZhcj() {
        return zhcj;
    }

    public int getZhcjNumber() {
        if (zhcj == "") {
            return 0;
        } else {
            return Integer.valueOf(zhcj);
        }
    }

    public double getZxf() {
        return zxf;
    }
}
